<?php
/**
 * Created by PhpStorm.
 * User: Bazoo
 * Date: 16/1/9
 * Time: 下午5:34
 */
//*************************** EVENT 通讯码 *************************

// ----- 系统通讯  -----
// 测试通讯
define("EVENT_TEST","event_test");

// 日志文件地址
define('PATH_SYSTEM_LOG_ROOT','/var/log/restaurant_order_server/');

define('RESULT','Result');
// 错误信息
define('ERROR_MSG','ErrorMsg');

// 成功
define('RESULT_CODE_OK',200);
// 参数异常
define('RESULT_CODE_PARAM_ERROR',400);
// 会话已过期
define('RESULT_CODE_SESSION_EXPIRED',401);
// 非法操作
define('RESULT_CODE_ILLEGAL_OPERATION',403);
// 找不到该通讯
define('RESULT_CODE_NOT_FOUND',404);
// 预料外的错误
define('RESULT_CODE_INTERNAL_SERVER_ERROR',500);


define('SYS_EVENT','ActionType');
define('DATA_DICTIONARY','DataDictionary');

define('EVENT','event');
define('REQUEST_ID','RequestId');

define('MESSAGE','message');
define('OPERATION','operation');
define('TYPE','type');
define('DATA','data');






// ********* 通讯 *********

// 添加商铺
define('EVENT_RESTAURANT_ADD','event_restaurant_add');


//  ------ 分类管理  ------
// 添加分类
define('EVENT_RESTAURANT_FOOD_GROUPS_ADD','event_restaurant_food_groups_add');
// 删除分类
define('EVENT_RESTAURANT_FOOD_GROUPS_DELETE','event_restaurant_food_groups_delete');
// 更新分类
define('EVENT_RESTAURANT_FOOD_GROUPS_UPDATE','event_restaurant_food_groups_update');
// 获取分类列表
define('EVENT_RESTAURANT_FOOD_GROUPS_GET_LIST','event_restaurant_food_groups_get_list');
// 获取单个分类
define('EVENT_RESTAURANT_FOOD_GROUPS_GET_RECORD','event_restaurant_food_groups_get_record');
// 更新商品分类排序
define('EVENT_RESTAURANT_FOOD_GROUPS_UPDATE_ORDER','event_restaurant_food_groups_update_order');


//  ------ 标签管理  ------
// 添加标签
define('EVENT_RESTAURANT_FOOD_TAGS_ADD','event_restaurant_food_tags_add');
// 删除标签
define('EVENT_RESTAURANT_FOOD_TAGS_DELETE','event_restaurant_food_tags_delete');
// 更新标签
define('EVENT_RESTAURANT_FOOD_TAGS_UPDATE','event_restaurant_food_tags_update');
// 获取标签列表
define('EVENT_RESTAURANT_FOOD_TAGS_GET_LIST','event_restaurant_food_tags_get_list');
// 获取单个标签信息
define('EVENT_RESTAURANT_FOOD_TAGS_GET_RECORD','event_restaurant_food_tags_get_record');


//  ------ 商品管理  ------
// 添加商品
define('EVENT_RESTAURANT_FOOD_ADD','event_restaurant_food_add');
// 删除商品
define('EVENT_RESTAURANT_FOOD_DELETE','event_restaurant_food_delete');
// 更新商品
define('EVENT_RESTAURANT_FOOD_UPDATE','event_restaurant_food_update');
// 获取商品列表
define('EVENT_RESTAURANT_FOOD_GET_LIST','event_restaurant_food_get_list');
// 获取单个商品信息
define('EVENT_RESTAURANT_FOOD_GET_RECORD','event_restaurant_food_get_record');
// 上架、下架商品
define('EVENT_RESTAURANT_FOOD_SELL_CHANGE','event_restaurant_food_sell_change');
// 更新商品排序
define('EVENT_RESTAURANT_FOOD_UPDATE_ORDER','event_restaurant_food_update_order');


//  ------ 桌子管理  ------
// 添加桌子
define('EVENT_TABLE_ADD','event_table_add');
// 更新桌子
define('EVENT_TABLE_UPDATE','event_table_update');
// 获取桌子列表
define('EVENT_TABLE_GET_LIST','event_table_get_list');
// 获取单个桌子信息
define('EVENT_TABLE_GET_RECORD','event_table_get_record');
// 删除桌子
define('EVENT_TABLE_DELETE','event_table_delete');


//  -----  餐厅信息管理  ------
// 获取餐厅基本信息
define('EVENT_RESTAURANT_INFO_GET_BASE','event_restaurant_info_get_base');
// 获取餐厅信息
define('EVENT_RESTAURANT_INFO_GET','event_restaurant_info_get');
// 编辑餐厅公告
define('EVENT_RESTAURANT_INFO_ANNOUNCE_SET','event_restaurant_info_announce_set');
// 编辑餐厅电话
define('EVENT_RESTAURANT_INFO_TEL_SET','event_restaurant_info_tel_set');
// 编辑营业时间
define('EVENT_RESTAURANT_INFO_OPEN_HOURS_SET','event_restaurant_info_open_hours_set');
// 提示音设置获取
define('EVENT_RESTAURANT_SETTINGS_RING_GET','event_restaurant_settings_ring_get');
// 提示音设置
define('EVENT_RESTAURANT_SETTINGS_RING_SET','event_restaurant_settings_ring_set');
// 打印机设置获取
define('EVENT_RESTAURANT_SETTINGS_PRINT_GET','event_restaurant_settings_print_get');
// 打印机设置
define('EVENT_RESTAURANT_SETTINGS_PRINT_SET','event_restaurant_settings_print_set');


// 顾客登录
define('EVENT_CONSUMER_LOGIN','event_consumer_login');
// 顾客下单
define('EVENT_CONSUMER_ORDER_NEW','event_consumer_order_new');
// 顾客催单
define('EVENT_CONSUMER_REMINDER','event_consumer_reminder');
// 顾客退菜
define('EVENT_CONSUMER_RETREAT_FOOD','event_consumer_retreat_food');
// 顾客退单
define('EVENT_CONSUMER_RETREAT_ORDER_FORM','event_consumer_retreat_order_form');
// 获取商铺信息
define('EVENT_CONSUMER_GET_RESTAURANT_INFO','event_consumer_get_restaurant_info');
// 顾客获取商铺商品列表
define('EVENT_CONSUMER_GET_FOOD_LIST','event_consumer_get_food_list');
// 顾客已完成订单列表
define('EVENT_CONSUMER_ORDER_FINISHED_LIST','event_consumer_order_finished_list');
// 顾客单个订单信息
define('EVENT_CONSUMER_ORDER_INFO','event_consumer_order_info');



// 商家登录
define('EVENT_RESTAURANT_LOGIN','event_restaurant_login');
// 新订单推送给商家
define('EVENT_RESTAURANT_NEW_ORDER','event_restaurant_new_order');
// 推送催单
define('EVENT_RESTAURANT_REMINDER','event_restaurant_reminder');
// 确认催单
define('EVENT_RESTAURANT_REMINDER_CONFIRM','event_restaurant_reminder_confirm');
// 推送退菜
define('EVENT_RESTAURANT_RETREAT_FOOD','event_restaurant_retreat_food');
// 商家确认退菜
define('EVENT_RESTAURANT_RETREAT_FOOD_CONFIRM','event_restaurant_retreat_food_confirm');
// 推送退单
define('EVENT_RESTAURANT_RETREAT_ORDER_FORM','event_restaurant_retreat_order_form');
// 商家确认退单
define('EVENT_RESTAURANT_RETREAT_ORDER_FORM_CONFIRM','event_restaurant_retreat_order_form_confirm');
// 已完成订单列表
define('EVENT_RESTAURANT_ORDER_FORM_LIST_FINISHED','event_restaurant_order_form_list_finished');
// 已退订单列表
define('EVENT_RESTAURANT_ORDER_FORM_LIST_RETREAT_FINISHED','event_restaurant_order_form_list_retreat_finished');
// 退单申请列表
define('EVENT_RESTAURANT_ORDER_FORM_LIST_RETREAT','event_restaurant_order_form_list_retreat');
// 催单列表
define('EVENT_RESTAURANT_ORDER_FORM_LIST_REMINDER','event_restaurant_order_form_list_reminder');
// 退菜列表
define('EVENT_RESTAURANT_ORDER_FORM_FOOD_LIST_RETREAT','event_restaurant_order_form_food_list_retreat');
// 商家手动打印订单socket
define('EVENT_RESTAURANT_PRINT_HAND','event_restaurant_print_hand');
// http
define('EVENT_RESTAURANT_PRINT','event_restaurant_print');


// 今日有效订单及收入
define('EVENT_RESTAURANT_NOW_STATISTICS','event_restaurant_now_statistics');
// 数据统计
define('EVENT_RESTAURANT_STATISTICS','event_restaurant_statistics');
// 营业统计
define('EVENT_RESTAURANT_STATISTICS_BUSINESS','event_restaurant_statistics_business');
// 余额获取
define('EVENT_RESTAURANT_ACCOUNT_INFO','event_restaurant_account_info');
// 提现
define('EVENT_RESTAURANT_WITHDRAWS','event_restaurant_withdraws');
// 已提现列表
define('EVENT_RESTAURANT_WITHDRAWS_LIST_SUC','event_restaurant_withdraws_list_suc');
// 正在提现列表
define('EVENT_RESTAURANT_WITHDRAWS_LIST_ING','event_restaurant_withdraws_list_ing');
// 已入帐列表
define('EVENT_RESTAURANT_ENTRY_LIST_YES','event_restaurant_entry_list_yes');
// 未入帐列表
define('EVENT_RESTAURANT_ENTRY_LIST_NOT','event_restaurant_entry_list_not');
// 绑定（新订单/催单/退菜/退单/）uid
define('EVENT_RESTAURANT_TOTAL_MNG','event_restaurant_total_mng');
// 绑定（确认--新订单/催单/退菜/退单/）uid
define('EVENT_RESTAURANT_ORDER_MNG','event_restaurant_order_mng');
// 意见反馈
define('EVENT_RESTAURANT_SUGGESTION_TO','event_restaurant_suggestion_to');





// 商家添加桌子
define('EVENT_RESTAURANT_TABLE_ADD','event_restaurant_table_add');




// **********************     数据库表      ***********************


// -----  数据库表: Consumer  -----

define('Consumer','Consumer');
define('CONSUMER_ID','CONSUMER_ID');
define('WX_ID','WX_ID');
define('ZFB_ID','ZFB_ID');
define('CONSUMER_NAME','CONSUMER_NAME');
define('PHONE_NUMBER','PHONE_NUMBER');
define('IMG_URL','IMG_URL');
define('LOGIN_TYPE','LOGIN_TYPE');
define('CREATED_ON','CREATED_ON');
define('CREATED_BY','CREATED_BY');
define('UPDATED_ON','UPDATED_ON');
define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: food  -----
define('Food','food');
define('Food_list','food_list');

define('FOOD_ID','FOOD_ID');
define('RESTAURANT_ID','RESTAURANT_ID');
define('FOOD_GROUP_ID','FOOD_GROUP_ID');
define('FOOD_NAME','FOOD_NAME');
//define('IMG_URL','IMG_URL');
define('FOOD_PRICE','FOOD_PRICE');
define('IS_LIMIT','IS_LIMIT');
define('LUNCHBOX_AMOUNTS','LUNCHBOX_AMOUNTS');
define('LUNCHBOX_PRICE','LUNCHBOX_PRICE');
define('IS_ON_SELL','IS_ON_SELL');
define('STOCK_DAY','STOCK_DAY');
define('STOCK_LEFT','STOCK_LEFT');
define('SPECIAL_FEATURE','SPECIAL_FEATURE');
define('ORDER_UNIT','ORDER_UNIT');
define('ORDER_MINIMUM','ORDER_MINIMUM');
define('FOOD_PROPERTY','FOOD_PROPERTY');
define('DESCRIPTION','DESCRIPTION');
define('DISPLAY_ORDER','DISPLAY_ORDER');


// -----  数据库表: food_groups  -----
define('Food_groups','food_groups');
define('Food_groups_list','food_groups_list');

//define('FOOD_GROUP_ID','FOOD_GROUP_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('FOOD_GROUP_NAME','FOOD_GROUP_NAME');
//define('DESCRIPTION','DESCRIPTION');
define('FOOD_ORDER','FOOD_ORDER');


// -----  数据库表: food_tags  -----
define('Food_tags','food_tags');
define('Food_tags_list','food_tags_list');

define('FOOD_TAG_ID','FOOD_TAG_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('FOOD_TAG_NAME','FOOD_TAG_NAME');
define('FOOD_TAG_COLOR','FOOD_TAG_COLOR');


// -----  数据库表: Order_for_foods  -----

define('Order_for_foods','Order_for_foods');
define('ORDER_FORM_ID','ORDER_FORM_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('FOOD_ID','FOOD_ID');
//define('FOOD_NAME','FOOD_NAME');
//define('FOOD_PRICE','FOOD_PRICE');
//define('LUNCHBOX_AMOUNTS','LUNCHBOX_AMOUNTS');
//define('LUNCHBOX_PRICE','LUNCHBOX_PRICE');
define('FOOD_COUNT','FOOD_COUNT');
define('FOOD_COUNT_LEFT','FOOD_COUNT_LEFT');
//define('FOOD_TAG_NAME','FOOD_TAG_NAME');
define('RETREAT_STATUS','RETREAT_STATUS');
define('RETREAT_COUNT','RETREAT_COUNT');
define('RETREAT_MONEY','RETREAT_MONEY');
define('SUC_RETREAT_COUNT','SUC_RETREAT_COUNT');
define('SUC_RETREAT_MONEY','SUC_RETREAT_MONEY');
define('IS_PAY','IS_PAY');
define('DATE','DATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Order_form  -----

define('Order_form','Order_form');
//define('ORDER_FORM_ID','ORDER_FORM_ID');
define('ORDER_NUM','ORDER_NUM');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('TABLE_NUM','TABLE_NUM');
define('TOTAL_PRICE','TOTAL_PRICE');
define('TOTAL_PRICE_LEFT','TOTAL_PRICE_LEFT');
define('CONSUMER_COUNT','CONSUMER_COUNT');
define('IS_TAKE_OUT','IS_TAKE_OUT');
define('LUNCHBOX_TOTAL_AMOUNTS','LUNCHBOX_TOTAL_AMOUNTS');
define('LUNCHBOX_TOTAL_AMOUNTS_LEFT','LUNCHBOX_TOTAL_AMOUNTS_LEFT');
define('LUNCHBOX_TOTAL_PRICE','LUNCHBOX_TOTAL_PRICE');
define('LUNCHBOX_TOTAL_PRICE_LEFT','LUNCHBOX_TOTAL_PRICE_LEFT');
define('PAY_WAY','PAY_WAY');
define('PAY_TIME','PAY_TIME');
define('PAY_STATUS','PAY_STATUS');
define('PAY_FAIL_REASON','PAY_FAIL_REASON');
define('RETREAT_ORDER_STATUS','RETREAT_ORDER_STATUS');
define('RETREAT_FOOD_STATUS','RETREAT_FOOD_STATUS');
define('REMINDER_STATUS','REMINDER_STATUS');
define('REMINDER_TIME','REMINDER_TIME');
define('IS_ENTRY','IS_ENTRY');
//define('DATE','DATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: problems_to_restaurant  -----
define('Problems_to_restaurant','problems_to_restaurant');
define('Problems_to_restaurant_list','problems_to_restaurant_list');

define('PROBLEM_ID','PROBLEM_ID');
define('PROBLEM_GROUP_ID','PROBLEM_GROUP_ID');
define('PROBLEM_NAME','PROBLEM_NAME');
define('SOLUTION','SOLUTION');


// -----  数据库表: problems_to_restaurant_groups  -----
define('Problems_to_restaurant_groups','problems_to_restaurant_groups');
define('Problems_to_restaurant_groups_list','problems_to_restaurant_groups_list');

//define('PROBLEM_GROUP_ID','PROBLEM_GROUP_ID');
define('PROBLEM_GROUP_NAME','PROBLEM_GROUP_NAME');
//define('NAME','NAME');
//define('DESCRIPTION','DESCRIPTION');

// -----  数据库表: Restaurant  -----

define('Restaurant','Restaurant');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('WX_ID','WX_ID');
//define('IMG_URL','IMG_URL');
define('RESTAURANT_NAME','RESTAURANT_NAME');
//define('DESCRIPTION','DESCRIPTION');
define('ANNOUNCEMENT','ANNOUNCEMENT');
define('IS_OPENING','IS_OPENING');
define('OPENING_TIME','OPENING_TIME');
define('CONTACT_NAME','CONTACT_NAME');
define('CONTACT_NUMBER','CONTACT_NUMBER');
define('PASSWORD','PASSWORD');
define('PROVINCE','PROVINCE');
define('CITY','CITY');
define('COUNTY','COUNTY');
define('DETAIL','DETAIL');
define('LNG','LNG');
define('LAT','LAT');
define('FOOD_GROUPS_ORDER','FOOD_GROUPS_ORDER');
define('IS_ISLAMIC','IS_ISLAMIC');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: restaurant_account  -----
define('Restaurant_account','restaurant_account');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('DATE','DATE');
//define('FLOW_TYPE','FLOW_TYPE');
define('BALANCE_FLOW','BALANCE_FLOW');
define('BALANCE','BALANCE');
//define('DETAIL','DETAIL');


// -----  数据库表: restaurant_balance  -----
define('Restaurant_balance','restaurant_balance');
//define('DATE','DATE');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('FLOW_TYPE','FLOW_TYPE');
//define('BALANCE_FLOW','BALANCE_FLOW');
//define('BALANCE','BALANCE');


// -----  数据库表: restaurant_certification  -----
define('Restaurant_certification','restaurant_certification');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('BUSINESS_LICENCE_IMG','BUSINESS_LICENCE_IMG');
define('CATERING_LICENCE_IMG','CATERING_LICENCE_IMG');
define('SPECIAL_PERMISSION_IMG','SPECIAL_PERMISSION_IMG');
define('PERSONAL_CREDENTIALS_IMG','PERSONAL_CREDENTIALS_IMG');
define('PERMMISION_STATUS','PERMMISION_STATUS');


// -----  数据库表: table_dining  -----
define('Table_dining','table_dining');
define('Table_dining_list','table_dining_list');

define('TABLE_ID','TABLE_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('TABLE_NUM','TABLE_NUM');
define('MAX_CAPACITY','MAX_CAPACITY');
define('QR_CODE','QR_CODE');


// -----  数据库表: restaurant_settings_print  -----
define('Restaurant_settings_print','restaurant_settings_print');
//define('RESTAURANT_ID','RESTAURANT_ID');


// -----  数据库表: restaurant_settings_sound  -----
define('Restaurant_settings_sound','restaurant_settings_sound');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('IS_RING','IS_RING');
define('IS_VIBRATION','IS_VIBRATION');



// -----  数据库表: res_admin_user  -----
define('Res_admin_user','res_admin_user');
//define('ID','ID');
//define('NAME','NAME');
//define('PHONE_NUMBER','PHONE_NUMBER');
//define('PASSWORD','PASSWORD');
define('RANK','RANK');
define('PAGE','PAGE');
define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: res_mng_group_mst  -----
define('Res_mng_group_mst','res_mng_group_mst');
define('GROUP_ID','GROUP_ID');
define('GROUP_NAME','GROUP_NAME');
define('IMG','IMG');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

define('GROUP_ID_LIST','GROUP_ID_LIST');



// -----  数据库表: res_mng_page_mst  -----
define('Res_mng_page_mst','res_mng_page_mst');
define('PAGE_ID','PAGE_ID');
define('PAGE_NAME','PAGE_NAME');
//define('GROUP_ID','GROUP_ID');
//define('DISPLAY_ORDER','DISPLAY_ORDER');
define('URL','URL');
//define('STATE','STATE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: system_message_to_restaurant  -----

define('System_message_to_restaurant','system_message_to_restaurant');
define('MESSAGE_ID','MESSAGE_ID');
define('MESSAGE_CONTENT','MESSAGE_CONTENT');
define('RESTAURANT_ID_ARRAY','RESTAURANT_ID_ARRAY');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');

// -----  数据库表: system_announcement_to_restaurant  -----

define('System_announcement_to_restaurant','system_announcement_to_restaurant');
define('ANNOUNCEMENT_ID','ANNOUNCEMENT_ID');
define('ANNOUNCEMENT_CONTENT','ANNOUNCEMENT_CONTENT');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// -----  数据库表: manager_balance  -----

define('Manager_balance','manager_balance');
//define('DATE','DATE');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('ORDER_FORM_ID','ORDER_FORM_ID');
//define('FLOW_TYPE','FLOW_TYPE');
//define('BALANCE_FLOW','BALANCE_FLOW');
//define('BALANCE','BALANCE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Statistics_restaurant_day_turnover  -----

define('Statistics_restaurant_day_turnover','Statistics_restaurant_day_turnover');
//define('DATE','DATE');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('TURNOVER','TURNOVER');
define('TURNOVER_COMPARE','TURNOVER_COMPARE');
define('TOTAL_FOOD_COUNT','TOTAL_FOOD_COUNT');
define('TOTAL_FOOD_COUNT_COMPARE','TOTAL_FOOD_COUNT_COMPARE');
define('CUSUMOR_COUNT','CUSUMOR_COUNT');
define('CUSUMOR_COUNT_COMPARE','CUSUMOR_COUNT_COMPARE');
define('FOOD_SALED_COUNT','FOOD_SALED_COUNT');
define('FOOD_SALED_PRICE','FOOD_SALED_PRICE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Suggestion_to_restaurant  -----

define('Suggestion_to_restaurant','Suggestion_to_restaurant');
define('SUGGESTION_ID','SUGGESTION_ID');
define('SUGGESTION_CONTENT','SUGGESTION_CONTENT');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Account_flow  -----

define('Account_flow','Account_flow');
define('ACCOUNT_FLOW_ID','ACCOUNT_FLOW_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('ACCOUNT_LEFT','ACCOUNT_LEFT');
//define('ORDER_FORM_ID','ORDER_FORM_ID');
define('FLOW_AMOUNT','FLOW_AMOUNT');
define('FLOW_TYPE','FLOW_TYPE');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Gonging_entry_order_form  -----

define('Gonging_entry_order_form','Gonging_entry_order_form');
//define('ORDER_FORM_ID','ORDER_FORM_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
//define('PAY_TIME','PAY_TIME');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');


// -----  数据库表: Restaurant_withdraws  -----

define('Restaurant_withdraws','Restaurant_withdraws');
define('WITHDRAWS_ID','WITHDRAWS_ID');
//define('RESTAURANT_ID','RESTAURANT_ID');
define('WITHDRAWS_AMOUNT','WITHDRAWS_AMOUNT');
define('WITHDRAWS_STATUS','WITHDRAWS_STATUS');
//define('CREATED_ON','CREATED_ON');
//define('CREATED_BY','CREATED_BY');
//define('UPDATED_ON','UPDATED_ON');
//define('UPDATED_BY','UPDATED_BY');



// ************** 后台管理页面常量 ***************

//------ 后台管理页面 ------
//-- 组 --
define('GROUP_ADMIN_MNG',1);
define('GROUP_RESTAURANT_MNG',2);
define('GROUP_SALESMAN_MNG',3);
define('GROUP_FINANCE_MNG',4);
define('GROUP_STATISTICS_MNG',5);
define('GROUP_SYS_ANNOUNCEMENT_MNG',6);

//-- 页面 --
define('PAGE_ADMIN_ADD',101);
define('PAGE_ADMIN_LIST',102);

define('PAGE_RESTAURANT_ADD',201);
define('PAGE_RESTAURANT_LIST',202);

define('PAGE_SALESMAN_ADD',301);
define('PAGE_SALESMAN_LIST',302);

define('PAGE_MANAGER_BALANCE_FLOW',401);

define('PAGE_STATISTICS_RESTAURANT_DAY_TURNOVER',501);

define('PAGE_MSG_TO_RESTAURANT',601);
define('PAGE_MSG_TO_RESTAURANT_LIST',602);
define('PAGE_ANNOUNCEMENT_TO_RESTAURANT',603);
define('PAGE_ANNOUNCEMENT_TO_RESTAURANT_LIST',604);


// ********* 通讯中使用常量 **********

// ----- 商铺审核状态 --------
// 审核中
define('PERMISSION_PROCESS',0);
// 审核通过
define('PERMISSION_SUCCESS',1);
// 审核未通过
define('PERMISSION_FAIL',2);


define('STATE_YES',1);
define('STATE_NO',0);

// 商铺信息
define('RESTAURANT_INFO','restaurant_info');
// 详细订单
define('ORDER_FOR_FOOD','order_for_food');
// 订单信息
define('ORDER_INFO','order_info');
define('ORDER_FORM_INFO','order_form_info');
define('ORDER_FOR_FOOD_INFO','order_for_food_info');
define('RETREAT_FOOD_INFO','retreat_food_info');
define('ORDER_FORM_FINISHED_LIST','order_form_finished_list');
define('ORDER_FORM_RETREAT_LIST','order_form_retreat_list');
define('ORDER_FORM_RETREAT_FINISHED_LIST','order_form_retreat_finished_list');
define('ORDER_FORM_REMINDER_LIST','order_form_reminder_list');
define('STATISTICS_INFO','statistics_info');
define('SEARCH_TYPE','search_type');
define('SEARCH_DAY','search_day');
define('SEARCH_SEVEN_DAYS','search_seven_days');
define('SEARCH_THIRTY_DAYS','search_thirty_days');
define('STATISTICS_BUSINESS_DAY','search_thirty_days');
define('RETREAT_FOOD_LIST','RETREAT_FOOD_LIST');
define('LOGIN_ID','login_id');



// 降序排列
define('ORDER_BY_DESC',0);
// 升序排列
define('ORDER_BY_ASC',1);
// 每页显示条数
define('EVERY_PAGE_COUNTS','every_page_counts');
// 最后一条id
define('LAST_ID','last_id');
// 页码
define('PAGE_INDEX','page_index');

//******* 支付方式 *******
// 支付宝支付
define('PAY_WAY_CASH',1);
// 微信支付
define('PAY_WAY_WX',2);
// 支付宝支付
define('PAY_WAY_ZFB',3);

// ******* 支付状态 ********
// 未支付
define('PAY_STATUS_NO',0);
// 支付中
define('PAY_STATUS_ONGOING',1);
// 已支付
define('PAY_STATUS_YES',2);
// 支付失败
define('PAY_STATUS_FAIL',3);

// ******* 支付失败原因 *******
// 余额不足
define('PAY_FAIL_REASON_NOT_ENOUGH',1);
//  用户取消
define('PAY_FAIL_REASON_CUSTOMER_CANCEL',2);

// ****** 退单状态 ******
// 用户发起退单
define('RETREAT_ORDER_STATUS_START',1);
// 退单成功
define('RETREAT_ORDER_STATUS_SUC',2);
// 退单被拒绝
define('RETREAT_ORDER_STATUS_REFUSE',3);

// ******* 退菜状态 *******
// 用户发起退菜
define('RETREAT_FOOD_STATUS_START',1);
// 退菜成功
define('RETREAT_FOOD_STATUS_SUC',2);
// 退菜被拒绝
define('RETREAT_FOOD_STATUS_REFUSE',3);

// ****** 催单状态 *******
// 用户发起催单
define('REMINDER_STATUS_START',1);
// 商家回复催单
define('REMINDER_STATUS_RESPONSE',2);

// 催单间隔时间10分钟
define('REMINDER_WAIT_TIME',600);

// 商家行为
// 同意
define('RESTAURANT_CONFIRM',1);
define('RESTAURANT_REFUSE',2);

// 未入帐金额
define('ACCOUNT_NOT_ENTRY','account_not_entry');
// 正在提现金额
define('WITHDRAWS_AMOUNT_ING','withdraws_amount_ing');
// 已提现列表
define('WITHDRAWS_LIST_SUC','withdraws_list_suc');
// 正在提现列表
define('WITHDRAWS_LIST_ING','withdraws_list_ing');
// 入帐列表
define('ENTRY_LIST_YES','entry_list_yes');
define('ENTRY_LIST_NOT','entry_list_not');